export type Json =
  | string
  | number
  | boolean
  | null
  | { [key: string]: Json | undefined }
  | Json[]

export interface Database {
  public: {
    Tables: {
      users: {
        Row: {
          id: string
          username: string
          avatar_url: string | null
          bio: string | null
          created_at: string
        }
        Insert: {
          id?: string
          username: string
          avatar_url?: string | null
          bio?: string | null
          created_at?: string
        }
        Update: {
          id?: string
          username?: string
          avatar_url?: string | null
          bio?: string | null
          created_at?: string
        }
      }
      poems: {
        Row: {
          id: string
          title: string
          content: string
          author_id: string | null
          dynasty: string | null
          poet: string | null
          category: string
          tags: string[]
          created_at: string
          is_original: boolean
        }
        Insert: {
          id?: string
          title: string
          content: string
          author_id?: string | null
          dynasty?: string | null
          poet?: string | null
          category: string
          tags?: string[]
          created_at?: string
          is_original?: boolean
        }
        Update: {
          id?: string
          title?: string
          content?: string
          author_id?: string | null
          dynasty?: string | null
          poet?: string | null
          category?: string
          tags?: string[]
          created_at?: string
          is_original?: boolean
        }
      }
    }
  }
}